<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>YL-UI</title>
    <meta name="generator" content="VuePress 1.8.2">
    
    <meta name="description" content="yl-ui 组件库文档">
    
    <link rel="preload" href="/yl-ui/assets/css/0.styles.4e038eaa.css" as="style"><link rel="preload" href="/yl-ui/assets/js/app.75a4d648.js" as="script"><link rel="preload" href="/yl-ui/assets/js/2.35f03a09.js" as="script"><link rel="preload" href="/yl-ui/assets/js/13.68a828bf.js" as="script"><link rel="prefetch" href="/yl-ui/assets/js/10.d0610750.js"><link rel="prefetch" href="/yl-ui/assets/js/11.271fd51f.js"><link rel="prefetch" href="/yl-ui/assets/js/12.d2c043c3.js"><link rel="prefetch" href="/yl-ui/assets/js/3.209edaa1.js"><link rel="prefetch" href="/yl-ui/assets/js/4.dd5f75e4.js"><link rel="prefetch" href="/yl-ui/assets/js/5.d3550bfa.js"><link rel="prefetch" href="/yl-ui/assets/js/6.51e13199.js"><link rel="prefetch" href="/yl-ui/assets/js/7.f0bcc823.js"><link rel="prefetch" href="/yl-ui/assets/js/8.f5ede323.js"><link rel="prefetch" href="/yl-ui/assets/js/9.278a947b.js">
    <link rel="stylesheet" href="/yl-ui/assets/css/0.styles.4e038eaa.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container no-sidebar"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/yl-ui/" aria-current="page" class="home-link router-link-exact-active router-link-active"><!----> <span class="site-name">YL-UI</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="https://github.com/Libra-Lei/yl-ui" target="_blank" rel="noopener noreferrer" class="nav-link external">
  GitHub
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="https://github.com/Libra-Lei/yl-ui" target="_blank" rel="noopener noreferrer" class="nav-link external">
  GitHub
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>基础组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/yl-ui/components/base/icon.html" class="sidebar-link">Icon</a></li><li><a href="/yl-ui/components/base/radio.html" class="sidebar-link">Radio</a></li><li><a href="/yl-ui/components/base/upload.html" class="sidebar-link">Upload</a></li><li><a href="/yl-ui/components/base/tag.html" class="sidebar-link">Tag</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>高阶组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/yl-ui/components/high/upload-table.html" class="sidebar-link">UploadTable</a></li><li><a href="/yl-ui/components/high/checkbox-group.html" class="sidebar-link">CheckboxGroup</a></li></ul></section></li></ul> </aside> <main aria-labelledby="main-title" class="home"><header class="hero"><!----> <h1 id="main-title">
      YL-UI
    </h1> <p class="description">
      yl-ui 组件库文档
    </p> <p class="action"><a href="/yl-ui/components/base/radio.html" class="nav-link action-button">
  快速上手 →
</a></p></header> <div class="features"><div class="feature"><h2>高阶定制</h2> <p>定制组件</p></div></div> <div class="theme-default-content custom content__default"><div class="language-bash extra-class"><pre class="language-bash"><code><span class="token comment"># npm</span>
<span class="token function">npm</span> i @libra-lei/yl-ui
<span class="token comment"># OR yarn</span>
<span class="token function">yarn</span> <span class="token function">add</span> @libra-lei/yl-ui
</code></pre></div><h3 id="引入"><a href="#引入" class="header-anchor">#</a> 引入</h3> <h4 id="完整引入"><a href="#完整引入" class="header-anchor">#</a> 完整引入</h4> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">'vue'</span><span class="token punctuation">;</span>

<span class="token comment">// 引入样式文件</span>
<span class="token keyword">import</span> <span class="token string">'@libra-lei/yl-ui/lib/yl-ui.css'</span>
<span class="token comment">// 完整引入</span>
<span class="token keyword">import</span> YlUI <span class="token keyword">from</span> <span class="token string">'@libra-lei/yl-ui'</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>YlUI<span class="token punctuation">)</span>

<span class="token comment">// 或者按需引入</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> Radio<span class="token punctuation">,</span> UploadMini <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">'@libra-lei/yl-ui'</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">component</span><span class="token punctuation">(</span>Radio<span class="token punctuation">.</span>name<span class="token punctuation">,</span> Radio<span class="token punctuation">)</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">component</span><span class="token punctuation">(</span>UploadMini<span class="token punctuation">.</span>name<span class="token punctuation">,</span> UploadMini<span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div></div> <div class="footer">
    MIT Licensed | Copyright © 2020-present Libra Lei
  </div></main></div><div class="global-ui"></div></div>
    <script src="/yl-ui/assets/js/app.75a4d648.js" defer></script><script src="/yl-ui/assets/js/2.35f03a09.js" defer></script><script src="/yl-ui/assets/js/13.68a828bf.js" defer></script>
  </body>
</html>
